#!/usr/bin/python3

import cv2

img = cv2.imread('/Users/ben/Documents/AI/CSDN/pics/lena.jpg', 0)
# cv2.imshow('GRAY Source:', img)

canny = cv2.Canny(img, 50, 150)
cv2.imshow('Canny 50-150', canny)

canny = cv2.Canny(img, 30, 100)
cv2.imshow('Canny 30-100', canny)

canny = cv2.Canny(img, 100, 200)
cv2.imshow('Canny 100-200', canny)

cv2.waitKey()
cv2.destroyAllWindows()